package dao;

import org.apache.ibatis.annotations.Param;

import entity.User;

public interface UserDAO {

	/**
	 * 查询用户表是否有重名
	 * @param Username
	 * @return
	 */
	public String selectUsername(String username);
	
	/**
	 * 注册，将用户添加到user表
	 */
	public void insertUser(User user);
	
	/*
	 * 登录
	 */
	public User selectUser(@Param("username")String username,
							@Param("password")String password);
}
